package com.inspur.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 *    
 * 入口类
 *
 * @desc:
 * @author: li.peng02
 * @date: 2019/3/14
 * @version: v1.0 
 */
@SpringBootApplication
public class CunstomerRibbonNoEurekaStart {

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }

    public static void main(String[] args) {
        SpringApplication.run(CunstomerRibbonNoEurekaStart.class, args);
    }
}
